package com.jiaai.cloud.gift.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.cloud.base.page.CustomPage;
import com.jiaai.cloud.gift.entity.TLiveGiftDetail;
import com.jiaai.cloud.gift.mapper.TLiveGiftDetailMapper;
import com.jiaai.cloud.gift.service.ITLiveGiftDetailService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;



import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 直播间礼物赠送表 服务实现类
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-01
 */
@Service
public class TLiveGiftDetailServiceImpl extends ServiceImpl<TLiveGiftDetailMapper, TLiveGiftDetail> implements ITLiveGiftDetailService {

    @Override
    public CustomPage<TLiveGiftDetail> joinFully(Page page, Wrapper wrapper) {
        page.setRecords(baseMapper.joinFully(page, wrapper));
        return new CustomPage(page);
    }

    @Override
    public CustomPage<TLiveGiftDetail> joinFullyByBroadcastId(Page page, String id) {
        page.setRecords(baseMapper.joinFullyByBroadcastId(page, id));
        return new CustomPage(page);
    }
}
